package com.mch.func.web.bdwenku;

import org.mch.biz.ui.FuncEvent;
import org.mch.biz.ui.FuncPanel;

import com.mch.func.web.browser.BrowserPanel;

import java.awt.BorderLayout;
import javax.swing.JTabbedPane;
import javax.swing.JPanel;

public class BDWenKuPanel extends FuncPanel {
	public BDWenKuPanel() {
		setLayout(new BorderLayout(0, 0));
		add(getTabbedPane(), BorderLayout.CENTER);
	}

	private static final long serialVersionUID = 2352111853492139915L;
	private JTabbedPane tabbedPane;
	private BrowserPanel browserPanel;
	private JPanel panel_1;

	@Override
	protected FuncEvent createEvent() {
		return new BDWenKuEvent(this);
	}

	public JTabbedPane getTabbedPane() {
		if (tabbedPane == null) {
			tabbedPane = new JTabbedPane(JTabbedPane.TOP);
			tabbedPane.addTab("浏览器", null, getBrowserPanel(), null);
			tabbedPane.addTab("New tab", null, getPanel_1(), null);
		}
		return tabbedPane;
	}

	public BrowserPanel getBrowserPanel() {
		if (browserPanel == null) {
			browserPanel = new BrowserPanel();
		}
		return browserPanel;
	}

	public JPanel getPanel_1() {
		if (panel_1 == null) {
			panel_1 = new JPanel();
		}
		return panel_1;
	}
}
